package com.autoMobile.servlet;

import com.autoMobile.dao.auto_managementDao;
import com.autoMobile.util.listData;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;

@WebServlet(name = "delSenQinServlet", value = "/sq/delSenQinServlet")
public class delSenQinServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
doPost(request,response);
    }

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        new auto_managementDao().deleteAutoManagement(request.getParameter("message"));
        new listData().autoList(request,response,getServletContext());
        response.sendRedirect(request.getContextPath()+"/pend/PendingServlet?zt=申请&&lb=1");
    }
}
